﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000CB RID: 203
	internal class FixExt1 : IExtDecoder
	{
		// Token: 0x06000306 RID: 774 RVA: 0x0000BE3E File Offset: 0x0000A23E
		private FixExt1()
		{
		}

		// Token: 0x06000307 RID: 775 RVA: 0x0000BE48 File Offset: 0x0000A248
		public ExtensionResult Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			sbyte typeCode = (sbyte)bytes[offset + 1];
			byte[] data = new byte[]
			{
				bytes[offset + 2]
			};
			return new ExtensionResult(typeCode, data);
		}

		// Token: 0x040000E7 RID: 231
		internal static readonly IExtDecoder Instance = new FixExt1();
	}
}
